using System;
using System.Collections.Generic;
using System.Text;

namespace BaseForum.Model
{
    public class Topic : ObjectIdentity
    {

        private Topic _parrentTopic;
        private Forum _forum;
        private User _user;
        private string _title;
        private string _content;
        private DateTime _postDate;
        private DateTime _modifiedDate;
        private List<Topic> _childTopics;

        public Topic()
        {
        }
        public Topic(int id)
        {
            this.Id = id;
        }

        public Topic ParrentTopic
        {
            get { return _parrentTopic; }
            set { _parrentTopic = value; }
        }

        public Forum Forum
        {
            get { return _forum; }
            set { _forum = value; }
        }

        public User User
        {
            get { return _user; }
            set { _user = value; }
        }

        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        public DateTime PostDate
        {
            get { return _postDate; }
            set { _postDate = value; }
        }
        public DateTime ModifiedDate
        {
            get { return _modifiedDate; }
            set { _modifiedDate = value; }
        }

        public List<Topic> ChildTopics
        {
            get { return _childTopics; }
            set { _childTopics = value; }
        }
    }
}
